﻿@{
    ViewBag.Title = "电信工程";
    Layout = "~/Views/Shared/_Master.cshtml";
}
@using Models.WebSite_HaiSheng
<script type="text/javascript">
    $(document).ready(function () {
        $('#banner').attr('src', '/images/yjbannerj.jpg');
    });
</script>
<div class="sloed01 left">
    <div align="center">
        <img src="/images/yj1.png" width="185" height="57" /></div>
    <div class="fwmt">
        <ul>
            <li>@Html.ActionLink("住宅", "Project_Housing", "Front")</li>
            <li>@Html.ActionLink("厂房", "Project_Factory", "Front")</li>
            <li>@Html.ActionLink("公用建筑", "Project_Public", "Front")</li>
            <li>@Html.ActionLink("装饰装修", "Project_Decoration", "Front")</li>
            <li>@Html.ActionLink("电信工程", "Project_Telecom", "Front")</li>
            <li>@Html.ActionLink("防水工程", "Project_Waterproof", "Front")</li>
            <li>@Html.ActionLink("安装工程", "Project_Installation", "Front")</li>
            <li>@Html.ActionLink("其它工程", "Project_Others", "Front")</li>
        </ul>
    </div>
</div>
<div class="sloed02 right">
   
    <div class="ftoyt">
        <h3>
            电信工程 TELECOM</h3>
    </div>
    <div class="gcyeji">
     <div class="texteb">
        您当前的位置：首页 > 工程业绩 > <span>电信工程</span>
    </div>
        <ul style="min-height: 400px;">
            @{
                var items = CH.GetAllData<Case>(c => c.CaseType == "电信工程").OrderByDescending(a => a.PubulishTime).ToList();
                int CurrentPage = ViewBag.CurrentPage == null ? 1 : (int)ViewBag.CurrentPage;
                int Size = 8;
                var count = items.Count % Size == 0 ? items.Count / Size : (items.Count / Size + 1);
                items = items.FindAll(msg => (items.IndexOf(msg)  >= (CurrentPage - 1) * Size) && (items.IndexOf(msg) + 1 <= (CurrentPage) * Size));

                foreach (var m in items)
                {
                <li style="width: 160px;">
                    @{
                    var img = m.GetImages().FirstOrDefault();
                    if (img != null)
                    { 
                        <a href=@Url.Action("Project_Details", "Front", new {m.ID })>
                            <img src=@img.ImageUrl width="161" height="138" alt="" />
                        </a>
                    }
                        <p>@m.Title</p>
                    }
                </li>
                }
            }
        </ul>
        @Html.SimplePager(ViewBag.current == null ? 1 : (int)ViewBag.current, count, "/Front/Project_Telecom/?pageid={0}", "pager")
    </div>
</div>